package com.zhonghui.common.bean;

import com.zhonghui.common.eshopDomain.ShopUser;

import java.util.Map;

public class LocalUser {
    private static ThreadLocal<Map<String,Object>> threadLocal = new ThreadLocal<>();

    public static ShopUser getUser(){
        Map<String, Object> map = LocalUser.threadLocal.get();
        ShopUser user = (ShopUser)map.get("user");
        return user;
    }
}
